package com.hotec.PROJECT_NAME.config.mybatis;

import lombok.extern.slf4j.Slf4j;
import org.apache.ibatis.reflection.MetaObject;
import org.apache.ibatis.reflection.wrapper.BeanWrapper;

@Slf4j
public class MybatisBeanWrapper extends BeanWrapper {


    public MybatisBeanWrapper(MetaObject metaObject, Object object) {
        super(metaObject, object);
    }

    @Override
    public String findProperty(String name, boolean useCamelCaseMapping) {

//        //裁剪使用原生fd_开始的列名称
//        if (UtilsString.startsWith(name, "")) {
//            name = UtilsString.removeStart(name, "");
//            logger.info("转换列名 " + name + " 为 " + name);
//        }

        return super.findProperty(name, useCamelCaseMapping);

    }

}
